'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	const startTime=event.startTime
	const endTime=event.endTime
	let res = db.collection("bill").where({
		type:1//,
		// createTime:dbCmd.gte(startTime),
		// createTime:dbCmd.lte(endTime)
	}).count()
	//返回数据给客户端
	return res
};